package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 运行结果枚举
 *
 * @author panbo
 * @since 2024/6/27
 */
@Getter
@RequiredArgsConstructor
@Dict("运行结果")
public enum RunStatusEnum implements DictEnum<Integer> {

    SUCCESS(1, "成功", "success"),
    FAILED(0, "失败", "error"),;

    @JsonValue
    @EnumValue
    private final Integer value;
    private final String label;
    private final String color;
}
